package me.boot.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.boot.common.data.model.Contacts;
import me.boot.gen.table.annotation.ColumnComment;
import me.boot.web.common.template.entity.BaseTreeEntity;

@Getter
@Setter
public abstract class BaseOrgNode<T extends BaseOrgNode<T>> extends BaseTreeEntity<T> {

    @ColumnComment("简称")
    @ApiModelProperty(value = "简称")
    @TableField
    private String shortname;

    @ColumnComment("负责人")
    @ApiModelProperty(value = "负责人")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Contacts leader;
}
